import request from '@/utils/request'

// 查询电梯维保单列表
export function listAfElevatorMaintenance(query) {
  return request({
    url: '/security/afElevatorMaintenance/list',
    method: 'get',
    params: query
  })
}

// 查询电梯维保单详细
export function getAfElevatorMaintenance(orderNo) {
  return request({
    url: '/security/afElevatorMaintenance/' + orderNo,
    method: 'get'
  })
}

// 新增电梯维保单
export function addAfElevatorMaintenance(data) {
  return request({
    url: '/security/afElevatorMaintenance',
    method: 'post',
    data: data
  })
}

// 修改电梯维保单
export function updateAfElevatorMaintenance(data) {
  return request({
    url: '/security/afElevatorMaintenance',
    method: 'put',
    data: data
  })
}

// 删除电梯维保单
export function delAfElevatorMaintenance(orderNo) {
  return request({
    url: '/security/afElevatorMaintenance/' + orderNo,
    method: 'delete'
  })
}

export function syncAfElevatorMaintenance() {
  return request({
    url: '/security/afElevatorMaintenance/syncInfo' ,
    method: 'get'
  })
}

